import request from "./request"
//请求验证码
export const getVerifyApi = phone => request.post('/sendSMS', `phone=${phone}`)

export const phoneLoginApi = data => request.post('/phoneRegin', `verifyCode=${data.code}&phone=${data.phone}`)

export const getUserInfoApi=()=>request.get('/shop/userProfiles')

export const WXLoginApi = code => request.post('/wechatUsers/PCLogin', `code=${code}`)


// 获取精品推荐的数据
export const getRecommendApi = () => request.get('/products/recommend')
//热门兑换
export const getHotListApi = () => request.get('/products/hot')
//git请求，axios要求我们使用{params:{id:1,name:'}}这个格式传递数据
//git传递数据要加{}
export const getMoreApi = params => request.get('/products', {params})
